const Book = require('../models/Book');
exports.addBook = function (bookObj) {
    return Book.create(bookObj);
}
exports.deleteBook = async function (bookId) {
    Book.destroy({
        where: {
            id: bookId
        }
    })
}
exports.updateBook = function (id, bookObj) {
    Book.update(bookObj, {
        where: {
            id
        }
    })
}
